/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * RazonSocial.java
 *
 * Created on 22/05/2011, 09:48:05 PM
 */

package GUI;

import Interfaz.InterfazControl;
import java.awt.Color;
import javax.swing.ImageIcon;
import javax.swing.JFrame;

/**
 *
 * @author Vane
 */
public class RazonSocial extends javax.swing.JFrame {
private InterfazControl laInterfaz;
    /** Creates new form RazonSocial */
   
    public RazonSocial(InterfazControl laInterfaz) {
		this.laInterfaz=laInterfaz;
        initComponents(); 
		this.setLocationRelativeTo(null); // Cmabiar icono de java en ventana
        this.setIconImage(new ImageIcon("src/imagenes/marketplus2.png").getImage());
		//getContentPane().setBackground(new java.awt.Color(2,2,2));  // cambia de color el jframe
    }

	//RazonSocial(Interfaz laInterfaz) {
	//	throw new UnsupportedOperationException("Not yet implemented");
	

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jBLogin = new javax.swing.JButton();
        jBCatalogo = new javax.swing.JButton();
        jBCompras = new javax.swing.JButton();
        jBSucursales = new javax.swing.JButton();
        jBRazonSocial = new javax.swing.JButton();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTextArea1 = new javax.swing.JTextArea();
        jBRazonSocial1 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
        setMinimumSize(new java.awt.Dimension(480, 400));
        setResizable(false);
        getContentPane().setLayout(null);

        jBLogin.setText("Personal Martket");
        jBLogin.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBLoginActionPerformed(evt);
            }
        });
        getContentPane().add(jBLogin);
        jBLogin.setBounds(10, 100, 140, 23);

        jBCatalogo.setText("Catálogo");
        getContentPane().add(jBCatalogo);
        jBCatalogo.setBounds(10, 140, 140, 23);

        jBCompras.setText("Compras");
        jBCompras.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBComprasActionPerformed(evt);
            }
        });
        getContentPane().add(jBCompras);
        jBCompras.setBounds(10, 180, 140, 23);

        jBSucursales.setText("Sucursales");
        jBSucursales.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBSucursalesActionPerformed(evt);
            }
        });
        getContentPane().add(jBSucursales);
        jBSucursales.setBounds(10, 220, 140, 23);

        jBRazonSocial.setText("Ir a Pág Principal");
        jBRazonSocial.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBRazonSocialActionPerformed(evt);
            }
        });
        getContentPane().add(jBRazonSocial);
        jBRazonSocial.setBounds(300, 290, 150, 23);

        jLabel2.setFont(new java.awt.Font("Tempus Sans ITC", 3, 14));
        jLabel2.setText("Razón Social de Supermercados");
        getContentPane().add(jLabel2);
        jLabel2.setBounds(170, 10, 230, 30);

        jLabel3.setFont(new java.awt.Font("Tahoma", 1, 11));
        jLabel3.setText("RIF: J-122231245          Desarrollado por: Group Delivery ");
        getContentPane().add(jLabel3);
        jLabel3.setBounds(70, 320, 320, 20);

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/marketplus.png"))); // NOI18N
        getContentPane().add(jLabel1);
        jLabel1.setBounds(10, 10, 110, 80);

        jLabel4.setFont(new java.awt.Font("Tempus Sans ITC", 3, 18));
        jLabel4.setText(" Market Plus");
        getContentPane().add(jLabel4);
        jLabel4.setBounds(220, 40, 120, 30);

        jTextArea1.setColumns(20);
        jTextArea1.setFont(new java.awt.Font("Tempus Sans ITC", 2, 12));
        jTextArea1.setRows(5);
        jTextArea1.setText("     Somos una empresa preocupada por el bienestar de la \nsociedad y por eso trabajamos para ella y desarrollamos \nproyectos que  permiten mejorar la calidad de vida de niños, \nniñas y adolescentes en situación de riesgo, así como también \nactividades en pro de la conservación del ambiente. ");
        jTextArea1.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR));
        jTextArea1.setSelectedTextColor(new java.awt.Color(204, 204, 204));
        jTextArea1.setSelectionColor(new java.awt.Color(204, 204, 255));
        jScrollPane1.setViewportView(jTextArea1);

        getContentPane().add(jScrollPane1);
        jScrollPane1.setBounds(160, 100, 300, 180);

        jBRazonSocial1.setText("Promociones");
        jBRazonSocial1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBRazonSocial1ActionPerformed(evt);
            }
        });
        getContentPane().add(jBRazonSocial1);
        jBRazonSocial1.setBounds(10, 260, 140, 23);

        pack();
    }// </editor-fold>//GEN-END:initComponents

	private void jBLoginActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBLoginActionPerformed
		LoginEmpleados irLoginEmpleados=new LoginEmpleados(laInterfaz);
		irLoginEmpleados.setVisible(true);
		this.dispose();
	}//GEN-LAST:event_jBLoginActionPerformed

	private void jBComprasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBComprasActionPerformed
		// TODO add your handling code here:

		Compras tipoCompras=new Compras(laInterfaz);
		tipoCompras.setVisible(true);
		this.dispose();
	}//GEN-LAST:event_jBComprasActionPerformed

	private void jBRazonSocialActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBRazonSocialActionPerformed
		// TODO add your handling code here:
		Principal promocionesPrincipal=new Principal(laInterfaz);
		promocionesPrincipal.setVisible(true);
		this.dispose();
		Principal irPrincipal=new Principal(laInterfaz);
		irPrincipal.setVisible(true);
		this.dispose();

	}//GEN-LAST:event_jBRazonSocialActionPerformed

	private void jBSucursalesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBSucursalesActionPerformed
		// TODO add your handling code here:
		Sucursales irsucuSucursales=new Sucursales(laInterfaz);
		irsucuSucursales.setVisible(true);
		this.dispose();
	}//GEN-LAST:event_jBSucursalesActionPerformed

	private void jBRazonSocial1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBRazonSocial1ActionPerformed
		// TODO add your handling code here:
	}//GEN-LAST:event_jBRazonSocial1ActionPerformed

    /**
    * @param args the command line arguments
    */
   
    

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jBCatalogo;
    private javax.swing.JButton jBCompras;
    private javax.swing.JButton jBLogin;
    private javax.swing.JButton jBRazonSocial;
    private javax.swing.JButton jBRazonSocial1;
    private javax.swing.JButton jBSucursales;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTextArea jTextArea1;
    // End of variables declaration//GEN-END:variables

}
